#ifndef AUTHENTICATIONCARD_H
#define AUTHENTICATIONCARD_H

#include "Models/DeviceAuthentication.h"

#include <QWidget>
#include <QMessageBox>

namespace Ui {
class AuthenticationCard;
}

class AuthenticationCard : public QWidget
{
    Q_OBJECT

public:
    explicit AuthenticationCard(QWidget *parent = nullptr);
    explicit AuthenticationCard(DeviceAuthentication* device_auth, QWidget *parent = nullptr);
    ~AuthenticationCard();

private slots:
    void on_pushButton_edit_clicked();

    void on_pushButton_delete_clicked();
signals:
    void updateUi();
private:
    Ui::AuthenticationCard *ui;
    DeviceAuthentication* device_auth;
    void InitUi(DeviceAuthentication* device_auth);
    QMessageBox::StandardButton showDeleteConfirmBox(QWidget *parent, const QString &deviceId);
};

#endif // AUTHENTICATIONCARD_H
